home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / editor / words3.lha / Words / auto_d.ged < prev    next >
Text File  |  1995-09-02  |  3KB  |  94 lines

  1. /* $VER: 1.0 Words autoconfig macro */
  2.  
  3. OPTIONS RESULTS                             /* enable return codes     */
  4.  
  5. if (LEFT(ADDRESS(), 6) ~= "GOLDED") then    /* not started by GoldEd ? */
  6.     address 'GOLDED.1'
  7.  
  8. 'LOCK CURRENT'                              /* lock GUI, gain access   */
  9. OPTIONS FAILAT 6                            /* ignore warnings         */
  10. SIGNAL ON SYNTAX                            /* ensure clean exit       */
  11.  
  12. /* ------------------------ INSERT YOUR CODE HERE: ------------------- */
  13.  
  14. 'REQUEST BODY="A new API client has been installed.|Do you want to have this client added|to the list of active clients ?" BUTTON="_START NEW CLIENT|no"'
  15.  
  16. if (RESULT = 1) then do
  17.  
  18.     'REQUEST HIDE=TRUE'
  19.  
  20.     'API FIND="SpellIT"'
  21.  
  22.     if (RC > 0) then do
  23.  
  24.         'API ADD="GOLDED:API/SpellIT/SpellIT LANGUAGE=deutsch ARGS=*"-T latin1*""'
  25.     end
  26.  
  27.     'REQUEST STATUS="Waiting for ISpell startup ..."'
  28.  
  29.     'RUN WAITPORT IRexxSpell'
  30.  
  31.     'REQUEST STATUS="" HIDE=FALSE BODY="API client has been added - save|new configuration ?" BUTTON="_SAVE|no"'
  32.  
  33.     if (RESULT = 1) then
  34.         'PREFS SAVE'
  35.  
  36.     'REQUEST BODY="Append ISpell menu to your current menu ?" BUTTON="_APPEND|no"'
  37.  
  38.     if (RESULT = 1) then do
  39.  
  40.         'QUERY CAT'
  41.  
  42.         if (RESULT = "deutsch") then
  43.             'MENUS APPEND CONFIG="golded:api/spellit/presets/spellit_D.men"'
  44.         else
  45.             'MENUS APPEND CONFIG="golded:api/spellit/presets/spellit_E.men"'
  46.  
  47.         'SET USER=19 VALUE=TRUE'
  48.         'SET USER=20 VALUE=FALSE'
  49.  
  50.         'REQUEST BODY="Menu has been changed - save|new configuration ?" BUTTON="_SAVE|no"'
  51.  
  52.         if (RESULT = 1) then
  53.             'PREFS SAVE'
  54.     end
  55.  
  56.     'REQUEST BODY="Append ISpell keyboard shortcuts to your|current keyboard bindings ?" BUTTON="_APPEND|no"'
  57.  
  58.     if (RESULT = 1) then do
  59.  
  60.         'BIND OVERLAY CONFIG="golded:api/spellit/presets/spellit.key"'
  61.  
  62.         'REQUEST BODY="Keyboad bindings have been changed - save|new configuration ?" BUTTON="_SAVE|no"'
  63.  
  64.         if (RESULT = 1) then
  65.             'PREFS SAVE'
  66.     end
  67.  
  68.     'REQUEST BODY="Install syntax parser highlighting spelling errors ?" BUTTON="_INSTALL|no"'
  69.  
  70.     if (RESULT = 1) then do
  71.  
  72.         'SYNTAX LOAD CONFIG=GOLDED:PRESETS/WARPSPELL.SYN'
  73.  
  74.         'REQUEST HIDE=FALSE BODY="Syntax preferences have been changed.|Save new configuration ?" BUTTON="_SAVE|no"'
  75.  
  76.         if (RESULT = 1) then
  77.             'PREFS SAVE'
  78.  
  79.         'SYNTAX ASK'
  80.     end
  81.  
  82. end
  83.  
  84. /* ---------------------------- END OF YOUR CODE --------------------- */
  85.  
  86. 'UNLOCK' /* VERY important: unlock GUI */
  87. EXIT
  88.  
  89. SYNTAX:
  90.  
  91. SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
  92. 'UNLOCK'
  93. EXIT
  94.